package cn.com.test.service;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.context.ApplicationContext;


import cn.com.test.dao.Notice;
import cn.com.test.dao.NoticeDAO;
import cn.com.test.daox.NoticeDAOx;

/**
 * @Author zhou
 * @Date Sun Feb 27 10:13:34 CST 2011
 * @to-do 
 */public class NoticeService  {
	
	private static final Logger log = Logger.getLogger(NoticeService.class);
	
	private NoticeDAOx noticeDAOx;
	
	public void setNoticeDAOx(NoticeDAOx noticeDAOx) {
		this.noticeDAOx = noticeDAOx;
	}
	
	public NoticeDAOx getNoticeDAOx() {
		return noticeDAOx;
	}
	
	public static NoticeService getInstance(ApplicationContext ctx) {
		return (NoticeService) ctx.getBean("NoticeService");
	}
}